Page({

  /**
   * 页面的初始数据
   */
  data: {
    img_list: ['../../images/ban1.jpg', '../../images/ban2.jpg', '../../images/ban3.jpg', '../../images/ban4.jpg',],
    text_list:['新鲜花材','同城配送','送前实拍回图','1-3小时送花','200%退赔承诺'],
    flower_list:[
      { img: 'https://666c-flower-271fb6-1257999444.tcb.qcloud.la/icons/f1.jpg', txt: '玫瑰' },
      { img: 'https://666c-flower-271fb6-1257999444.tcb.qcloud.la/icons/f2.jpg', txt: '康乃馨' },
      { img: 'https://666c-flower-271fb6-1257999444.tcb.qcloud.la/icons/f3.jpg', txt: '向日葵' },
      { img: 'https://666c-flower-271fb6-1257999444.tcb.qcloud.la/icons/f4.jpg', txt: '满天星' },
      { img: 'https://666c-flower-271fb6-1257999444.tcb.qcloud.la/icons/f5.jpg', txt: '更多' },
      ],
    ticket_list:[
      { money: 5, reach: 199 },
      { money: 20, reach: 399 },
      { money: 30, reach: 599 },
    ],
    target_list: ['../../images/s1.jpg', '../../images/s2.jpg', '../../images/s3.jpg', '../../images/s4.jpg',],
    price_list: [
      { txt: '199以下', color:'#ebc1b1'},
      { txt: '200-299元', color: '#febf93' },
      { txt: '350-499元', color: '#ffb2c5' },
      { txt: '500以上', color: '#b2caf0' },
      { txt: '表白/求婚', color: '#cfd9c0' }, 
     ],
    groom_list: ['../../images/gr1.jpg', '../../images/gr2.jpg'],
    item_list:[
      { img:'../../images/it1.jpg',name:'玫瑰花超级大礼包',price:'998.00'},
      { img: '../../images/it2.jpg', name: '玫瑰花超级大礼包', price: '998.00' },
      { img: '../../images/it3.jpg', name: '玫瑰花超级大礼包', price: '998.00' },
      { img: '../../images/it4.jpg', name: '玫瑰花超级大礼包', price: '998.00' },
      { img: '../../images/it1.jpg', name: '玫瑰花超级大礼包', price: '998.00' },
      { img: '../../images/it2.jpg', name: '玫瑰花超级大礼包', price: '998.00' },
      { img: '../../images/it3.jpg', name: '玫瑰花超级大礼包', price: '998.00' },
      { img: '../../images/it4.jpg', name: '玫瑰花超级大礼包', price: '998.00' }
    ],
    nous_list:[
      '2018年光棍节脱单指南',
      '光棍节又要来了,是时候彰显你的男子力啦！',
      "2018光棍节如何文艺地说我爱你",
      "2018程序员成单身率最高职业，程序员该如何脱单？",
      "双11攻略|如何提高邀约女生的几率？",
      "2018年脱单秘籍|不想过光棍节，记得来看看",
      "表白适合送什么花",
      "向女朋友求婚送多少朵玫瑰合适？"
      ],
    about_list:['花语大全','订单查询','关于我们']
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
   
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
    
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    this.judgeAuthentic();
  },
  judgeAuthentic(){
    console.log(wx.getStorageSync('isAuthentic'))
    if (!wx.getStorageSync('isAuthentic')){
       wx.redirectTo({
         url: '../power/power',
       })
     }
  },
  goDetail(){
    wx.navigateTo({
      url: '../detail/detail',
    })
  },
  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {
    
  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {
    
  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
    
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
    
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
    
  }
})